/* 设计稿高度 */
export const DESIGN_H = 1080;
/* 设计稿宽度 */
export const DESIGN_W = 1920;
export const setHeight = (size:number) => {
    let docH = (size / DESIGN_H) * window.innerHeight;
    return docH;
};
export const setWeigth = (size:number) => {
    let docW = (size / DESIGN_W) * window.innerWidth;
    return docW;
};
export const setFontSize = (size:number, H = DESIGN_H) => {
    let docH = document.documentElement.clientHeight;
    return ((docH / 100) * size * 100) / H;
};